package com.k2data.k2app.domain.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.k2data.k2app.constant.Constant;
import com.k2data.k2app.domain.vo.Job;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.time.LocalDateTime;

/**
 * 任务和作业关联表
 */
@Data
@Table(name = "model")
public class ModelDO {

	private Long id;

	private Long modelId;

	private String icon;

	private Integer useful;

	private Long updateBy;

	/**
	 * 查询开始时间
	 */
	@JsonFormat(pattern = Constant.ISO_FORMAT)
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
	private LocalDateTime updateTime;

}